/*!
 * Basis javasript library 
 * http://code.google.com/p/basis-js/
 *
 * @copyright
 * Copyright (c) 2006-2010 Roman Dvornov.
 *
 * @license
 * GNU General Public License v2.0 <http://www.gnu.org/licenses/gpl-2.0.html>
 */

/**
 * Bases style for Basis.Controls.Table
 */

  .Basis-Table
  {
    border-spacing: 0;
    border-left: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
    empty-cells: show;
  }
  .Basis-Table TD,
  .Basis-Table TH
  {
    border-collapse: collapse;
  }

  /*
   * HEADER
   */

  /*
   * default
   */
  .Basis-Table-Header-Cell
  {
    padding: 0 !important; /* IMPORTANT: cell must has no padding */
    margin: 0;
    border: none;
    border-bottom: 1px solid white;
    font-weight: normal;
    vertical-align: top;
    text-align: left;
    background-repeat: repeat-x;
    background-image: url(bg.gif);
    background-color: #F1F2F4;
    white-space: nowrap;
    -moz-user-select: none;
    cursor: default;
  }
  .Basis-Table-Header-Cell-Content
  {
    height: 100%;
    margin: 0;
    margin-top: -8px;
    padding-left: 1px;
    border-top: 1px solid #D5D5D5;
    border-bottom: 1px solid #D5D5D5;
    border-right: 1px solid #D5D5D5;
    background: url(hline_left.gif) no-repeat left top;
  }
  .Basis-Table-Header-GroupContent .Basis-Table-Header-Cell-Content
  {
    margin-bottom: -2px;
    text-align: center;
  }
  .Basis-Table-Header-Cell-Title
  {
    display: block;
    padding: 3px .5em 3px .4em;
    background: url(hline_right.gif) no-repeat right top;
    margin-right: -1px;
  }
  .Basis-Table-Sort-Direction
  {
    height: 8px;
    width: 8px;
    margin: 0 auto;
  }

  /*
   * :hover
   */
  .Basis-Table-Header-SortableCell:hover
  {
    cursor: pointer;
    background-color: #B7E7FB;
    background-image: url(hover_bg.gif);
  }
  .Basis-Table-Header-SortableCell:hover .Basis-Table-Header-Cell-Content
  {
    background-image: url(hover_hline.gif);
    border-color: #93C9E3;
    border-left: none;
    padding-left: 1px;
  }
  .Basis-Table-Header-SortableCell:hover .Basis-Table-Header-Cell-Title
  {
    background-image: url(hover_hline.gif);
  }

  /*
   * selected
   */
  .Basis-Table-Header .selected
  {
    background-color: #D8ECF6;
    background-image: url(selected_bg.gif);
  }
  .Basis-Table-Header .selected .Basis-Table-Header-Cell-Content
  {
    background-image: none;
    border-color: #96D9F9;
    border-left: 1px solid #96D9F9;
    padding-left: 0;
  }
  .Basis-Table-Header .selected .Basis-Table-Header-Cell-Title
  {
    background-image: none;
  }
  .Basis-Table-Header .selected .Basis-Table-Sort-Direction
  {
    background: url(order_asc.gif) no-repeat center center;
  }
  .Basis-Table-Header .sort-order-desc .selected .Basis-Table-Sort-Direction
  {
    background-image: url(order_desc.gif);
  }

  /*
   * COMMON
   */

  .Basis-Table-Body   .right,
  .Basis-Table-Footer .right
  {
    text-align: right;
  }
  .Basis-Table-Body   .center,
  .Basis-Table-Footer .center
  {
    text-align: center;
    padding-left: .25em;
  }

  /*
   * BODY
   */

  .Basis-Table-Row TD
  {
    padding: 3px .25em 3px .5em;
    border-right: 1px solid #EDEDED;
  }

  .Basis-Table-Row:hover TD,
  .Basis-Table-Row.selected TD
  {
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding-top: 2px;
    padding-bottom: 2px;
    background-image: url();
    background-repeat: repeat-x;
  }

  .Basis-Table-Row:hover TD
  {              
    background-color: #E8F5FD !important;
    border-top-color: #D8F0FA;
    border-bottom-color: #D8F0FA;
  }
  .Basis-Table-Row.selected TD
  {
    background-color: #D5EFFC !important;
    border-right-color: #D5EFFC;
    /*border-right-color: #D1EBF8;*/
    border-top-color: #99DEFD;
    border-bottom-color: #99DEFD;
  }

 /*
  * grouping
  */
  .Basis-Table-GroupHeader TD
  {
    font-weight: bold;
    border-top: 1px solid #EDEDED !important;
    border-bottom: 1px solid #EDEDED !important;
    border-right: 1px solid #EDEDED;
    font-size: 85% !important;
    padding: 4px !important;
    background: none !important;
    cursor: pointer;
  }
  .Basis-Table-GroupHeader .expander
  {
    display: block;
    float: left;
    margin-left: -2px;
    height: 1.2em;
    width: 20px;
    background: url(minus.gif) no-repeat center center;
  }
  .Basis-Table .collapsed .Basis-Table-GroupHeader .expander
  {
    background-image: url(plus.gif);
  }
  /*.Basis-Table .collapsed .Basis-Table-GroupHeader
  {
    display: table-row;
  }*/
  .Basis-Table .collapsed .Basis-Table-Row
  {
    display: none;
  }

  /*
   * FOOTER
   */

  .Basis-Table-Footer-Cell
  {
    padding: .22em .25em .22em .5em;
    border-top: 1px solid #E8E8E8;
    border-right: 1px solid #E8E8E8;
    background: url(footer_bg.gif) repeat-x;
  }
